package ch2.el.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 运行
 */
public class main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(EventConfig.class);
        DemoPublisher demoPublisher=context.getBean(DemoPublisher.class);
        demoPublisher.pulish("杰哥不要啊");
        context.close();
    }
}
